<?php
namespace app\common\model;

class LoveMarry extends Base
{
    protected $name = 'love_marry';

    public function getSearchTypeAttr($val)
    {
        if($val){
            return '有偿';
        }else{
            return '无偿';
        }
    }

    public function getMarryStatusAttr($val)
    {
        $status = [1 => '未婚', 2 => '已婚', 3 => '离婚', 4 => '再婚'];

        return $status[$val];
    }
}